package com.modificial.fastdfs.domain;

import com.modificial.fastdfs.constants.OtherConstants;
import com.modificial.fastdfs.proto.mapper.FdfsColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文件的基础信息
 *
 * @author yuqih
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FileInfo {
    /**
     * 长度
     */
    @FdfsColumn
    private long fileSize;
    /**
     * 创建时间
     */
    @FdfsColumn(index = 1)
    private int createTime;
    /**
     * 校验码
     */
    @FdfsColumn(index = 2)
    private int crc32;
    /**
     * ip地址
     */
    @FdfsColumn(index = 3, max = OtherConstants.FDFS_IPADDR_SIZE)
    private String sourceIpAddr;

    private String md5;

}
